﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scanner
{
    enum TokenKind : int
    {
        Illegal = 0,
        Id,
        KeyWord,
        Assign,
        ArifOper,
        LogOper,
        CompOper,
        LeftBracket,
        RightBracket,
        LeftBrace,
        RightBrace,
        String,
        Literal,
        StringComment,
        CommentBegin,
        CommentEnd,
        Eos
    };

    class Token
    {
        private TokenKind type;
        private string value;

        public Token()
        {
            this.type = TokenKind.Illegal;
            this.value = "";
        }

        public Token(TokenKind type, string value = "")
        {
            this.type = type;
            this.value = value;
        }

        public TokenKind getType()
        {
            return this.type;
        }

        public string getValue()
        {
            return this.value;
        }
    }
}
